# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-treebeard
pkgver=4.4
pkgrel=1
pkgdesc="Efficient tree implementations for Django"
url="https://github.com/django-treebeard/django-treebeard"
arch="noarch"
license="Apache-2.0"
depends="py3-django"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-treebeard/django-treebeard/archive/$pkgver.tar.gz
	"

builddir="$srcdir/django-treebeard-$pkgver"

replaces="py-django-treebeard" # Backwards compatibility
provides="py-django-treebeard=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
d633367b688fc3d437da598581921aeaebdfcd04860c6e5e0281294c6524e05ac7471581a7948e8ed3315952889766e6cebf267aff526a1336f7e213e9454e53  py3-django-treebeard-4.4.tar.gz
"
